<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- 第一步移动端的视口 -->
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <!-- 第二步引入我们的mui css mui js  -->
    <link rel="stylesheet" href="./assets/mui/css/mui.css">

    <!-- 引入图标字体css -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.css">
    <script src="./assets/mui/js/mui.js"></script>
    <script src='./assets/zepto/zepto.min.js'> </script>


    <!-- 引入我们公共js -->
    <script src="./js/base.js"></script>
    <script src="./js/cart1.js"></script>
    <script src="./assets/artTemplate/template-web.js"></script>

    <!-- 我们自己的样式 -->
    <link rel="stylesheet" href="./css/mybase.css">
    <link rel="stylesheet" href="./css/cart1.css">

</head>

<body>
    <!-- 主页面标题 -->
    <header class="mui-bar mui-bar-nav header">
        <a class="mui-icon mui-icon-search  mui-pull-right" herf='search.html'></a>
        <h1 class="mui-title">我的购物车</h1>
    </header>

    <nav class="mui-bar mui-bar-tab footer">
        <a class="mui-tab-item mui-active" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-bars"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="cart.html">
            <span class="mui-icon  fa  fa-shopping-cart"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="user.html">
            <span class="mui-icon mui-icon-person"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>

    <div class="myCart">
            <ul class="mui-table-view" id='cartList'>
                <!-- <li class="mui-table-view-cell mui-media">
                    <a href="javascript:;">
                        <img class="mui-media-object mui-pull-left" src="./images/user.jpg">
                        <div class="mui-media-body">
                            <p>匡威三星阿拉啦啦啦拉拉</p>
                            <div class="mui-ellipsis detailInfor mui-clearfix">
                                <span>
                                    <input type="checkbox" checked='checked' id='' name=''>
                                    <span>现价66</span>
                                    <span>原价666</span>
                                </span>
                                <span>
                                    鞋码尺寸
                                </span>
                                <span>
                                    数量1双
                                </span>
                            </div>
                        </div>
                    </a>
                </li> -->
            </ul>

            <div>
                总价:<span id='allPrice'>1000</span>元
            </div>
    </div>




    <script type='text/html' id='cartContent'>
        {{each result items i}}
        <li class="mui-table-view-cell mui-media">
            <div class='mui-slider-handle'>
                <a href="javascript:;">
                    <img class="mui-media-object mui-pull-left" src="{{items.pic[0].picAddr}}">
                    <div class="mui-media-body">
                        <p>{{items.proName}}</p>
                        <div class="mui-ellipsis detailInfor mui-clearfix">
                            <span>
                                <input type="checkbox" checked='checked'>
                                <span class='price'>现价:{{items.price}}</span>
                                <span>原价:{{items.oldPrice}}</span>
                            </span>
                            <span class='size'>
                                鞋码尺寸:{{items.size}}
                            </span>
                            <span class='num'>
                                数量:{{items.num}}
                            </span>
                            <span class='allPrices'>价格:{{items.allPrice}}</span>
                        </div>
                    </div>
                </a>

            </div>
            <div class='mui-slider-right mui-disabled'>
                    <a class='mui-btn mui-btn-red del-btn' data-id='{{items.id}}' id='delete'>删除</a>
                    <a class='mui-btn mui-btn-blue edit-btn' data-id='{{items.id}}' id='edit'>编辑</a>
            </div>
        </li>
        {{/each}}
        

        
    </script>
</body>

</html>